﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="your-details.aspx.cs" EnableEventValidation="true"
    Async="true" Inherits="car_insurance_your_details" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" href="../css/gg-mobile.css">
    <meta charset="utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0'
        name='viewport' />
    <link rel="icon" href="/favicon.png" />

    <script src="../js/gluaygluay-mobile.js" type="text/javascript"></script>

    <script type="text/javascript">
        (function(i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
  m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', 'UA-26930207-1', 'gluaygluay.com');
        ga('send', 'pageview');

    </script>

</head>
<body class="popup-body">
    <form id="form1" runat="server">
    <div class="bg-blur">
        <div class="container-popup-form">
            <div class="big-title-5">
                <asp:Label ID="lblYourDeailsTitle" runat="server" Text="<%$ Resources:CarMenu,KindlyEnter%>"></asp:Label>
            </div>
            <asp:RequiredFieldValidator ID="rfvUserName" runat="server" CssClass="validationError"
                ValidationGroup="personal" ErrorMessage="" Text="" ControlToValidate="txtUserName"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revUserName" runat="server" ValidationGroup="personal"
                ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationError"
                ControlToValidate="txtUserName" ErrorMessage=""></asp:RegularExpressionValidator>
            <html5:TextInput ID="txtUserName" MaxLength="50" runat="server" CssClass="your-detail-fields"
                Text="<%$Resources:CarMenu,YourName%>"></html5:TextInput>
            <asp:RegularExpressionValidator ID="rfvUserEmail" Text="" CssClass="validationError"
                runat="server" ValidationGroup="personal" ErrorMessage="" ControlToValidate="txtUserEmail"
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="revUserEmail" runat="server" Text="" CssClass="validationError"
                ValidationGroup="personal" ErrorMessage="" ControlToValidate="txtUserEmail" Display="Dynamic"></asp:RequiredFieldValidator>
            <html5:EmailInput ID="txtUserEmail" runat="server" MaxLength="80" CssClass="your-detail-fields"
                Text="<%$Resources:CarInsurance,YourEmail%>"></html5:EmailInput>
            <asp:RequiredFieldValidator ID="rfvUserMobile" runat="server" CssClass="validationError"
                ValidationGroup="personal" ErrorMessage="" Text="" ControlToValidate="txtUserMobile"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revUserMobile" runat="server" ValidationGroup="personal"
                ValidationExpression="0[8-9]\d{8}" ControlToValidate="txtUserMobile" CssClass="validationError"
                ErrorMessage=""></asp:RegularExpressionValidator>
            <html5:PhoneInput ID="txtUserMobile" runat="server" CssClass="your-detail-fields"
                MaxLength="10" Text="<%$Resources:CarMenu,MobileSample%>"></html5:PhoneInput>
            <br />
            <div class="submit-btn-link">
                <asp:Button runat="server" ID="btnSubmit" Text="View Results Now" CssClass="submit-btn"
                    Height="45px" OnClick="btnSubmit_Click" ValidationGroup="personal" OnClientClick="LoadValidationErrorCss()" />
            </div>
            <div class="db-logo-side">
                <asp:Image ID="imgDBDOIC" runat="server" Width="255" Height="71" alt="" />
            </div>
            <div style="display: none;">
                <asp:HiddenField ID="hdnQuoteId" runat="server" Value="0" />
                <asp:HiddenField ID="hdnCarId" runat="server" Value="0" />
                <asp:HiddenField ID="hdnPolicyId" runat="server" Value="0" />
            </div>
            <input id="inputLang" value="" style="display: none;" />
        </div>
    </div>

    <script type="text/javascript">
        function RemoveSpace(c) {
            c.value = c.value.split(' ').join('')
        }

        function DefaultName(TextBoxControl, TextBoxEvent) {
            if (TextBoxControl.value.length == 0 && TextBoxEvent.type == "blur") {
                if (document.getElementById('inputLang').value == 'EN') {
                    TextBoxControl.value = "Your name ...";
                }
                else {
                    TextBoxControl.value = "ชื่อของคุณ  ...";
                }
            }
        }

        function DefaultEmail(TextBoxControl, TextBoxEvent) {
            if (TextBoxControl.value.length == 0 && TextBoxEvent.type == "blur") {
                if (document.getElementById('inputLang').value == 'EN') {
                    TextBoxControl.value = "Your E-mail address ...";
                }
                else {
                    TextBoxControl.value = "อีเมล์";
                }
            }
        }

        function DefaultPhone(TextBoxControl, TextBoxEvent) {
            if (TextBoxControl.value.length == 0 && TextBoxEvent.type == "blur") {
                if (document.getElementById('inputLang').value == 'EN') {
                    TextBoxControl.value = "Example: 0893998209";
                }
                else {
                    TextBoxControl.value = "ตัวอย่าง 0893998209";
                }
            }
        }

        function ClearText(TextBoxControl, TextBoxEvent) {
            if (TextBoxControl.value == "Your name ...") {
                TextBoxControl.value = "";
                document.getElementById('inputLang').value = 'EN'
            }
            if (TextBoxControl.value == "ชื่อของคุณ  ...") {
                TextBoxControl.value = "";
                document.getElementById('inputLang').value = 'TH'
            }
            if (TextBoxControl.value == "Your E-mail address ...") {
                TextBoxControl.value = "";
                document.getElementById('inputLang').value = 'EN'
            }

            if (TextBoxControl.value == "อีเมล์") {
                TextBoxControl.value = "";
                document.getElementById('inputLang').value = 'TH'
            }
            if (TextBoxControl.value == "Example: 0893998209") {
                TextBoxControl.value = "";
                document.getElementById('inputLang').value = 'EN'
            }
            if (TextBoxControl.value == "ตัวอย่าง 0893998209") {
                TextBoxControl.value = "";
                document.getElementById('inputLang').value = 'TH'
            }
        }
        
    </script>

    </form>
</body>
</html>
